package com.aggregate.pay.transfar.bean;

import com.aggregate.pay.transfar.enums.ResultStatus;
import com.aggregate.pay.transfar.jackson.converter.ResultStatusDeserialize;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * 公众响应参数
 * @author Moyq5
 * @date 2018年10月24日
 */
public class Result<T> {

	@JsonProperty("result")
	@JsonDeserialize(converter = ResultStatusDeserialize.class)
	private ResultStatus status;
	/**
	 * 错误编码
	 */
	private String code;
	/**
	 * 错误描述
	 */
	private String msg;
	/**
	 * 记录数
	 */
	private Integer count;
	/**
	 * 业务参数
	 */
	private T data;
	public ResultStatus getStatus() {
		return status;
	}
	public void setStatus(ResultStatus status) {
		this.status = status;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
}
